package work5;

import java.util.List;

//分页工具类
public class PageHelper {
	
	private int pagesize;
	private int start;
	private List<Object> list;
	public int getPagesize() {
		return pagesize;
	}
	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}
	public int getStart() {
		return start;
	}
	public void setStart(int start) {
			this.start = (start-1)*this.pagesize;
	}
	public List<Object> getList() {
		return list;
	}
	public void setList(List<Object> list) {
		this.list = list;
	}
	@Override
	public String toString() {
		return "PageHelper [pagesize=" + pagesize + ", start=" + start + ", list=" + list + "]";
	}
	
}
